<?php

/**
 * 计算数组的差集
 */

$array1 = array('a', "a" => "green", "red", "blue", "red");
$array2 = array("b" => "GREEN", "yellow", "red", 'a');
$result = array_diff($array1, $array2);
print_r($array1);
echo '<br/>';
print_r($array2);
echo '<br/>';
print_r($result);
